.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: tourFadeIn 0.3s ease;
}

.tour-card {
    background: var(--card);
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    position: relative;
    animation: tourSlideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    animation: tourGlow 2s infinite;
}

@keyframes tourGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; box-shadow: 0 0 20px var(--accent); }
}

.tour-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: tourIconBounce 0.5s ease;
}

@keyframes tourIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.tour-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tour-impact {
    font-size: 12px;
    color: var(--warning);
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    animation: tourImpactPulse 1s infinite;
}

@keyframes tourImpactPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.tour-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tour-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--bg);
    border-radius: 20px;
}

.tour-feature {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-feature:hover {
    transform: translateY(-5px);
}

.tour-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.tour-feature:hover .tour-feature-icon {
    animation: tourFeatureBounce 0.5s ease;
}

@keyframes tourFeatureBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tour-feature-text {
    font-size: 12px;
    color: var(--text-muted);
}

.tour-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    max-height: 80px;
    overflow-y: auto;
    padding: 8px;
}

.tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-dot:hover {
    transform: scale(1.2);
    background: var(--accent);
}

.tour-dot.active {
    width: 24px;
    background: var(--accent);
    border-radius: 12px;
    animation: tourDotPulse 0.5s ease;
}

@keyframes tourDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tour-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.tour-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.tour-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tour-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tour-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.tour-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.tour-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.tour-btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.tour-highlight {
    position: relative;
    z-index: 10001;
    animation: tourPulse 1s infinite;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    border-radius: 12px;
    background: var(--accent-light);
    transition: all 0.2s ease;
}

@keyframes tourPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.tour-tooltip {
    position: fixed;
    background: var(--card);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 280px;
    z-index: 10002;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    pointer-events: none;
    animation: tourTooltipPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes tourTooltipPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.tour-tooltip.bottom::before {
    top: -7px;
    left: 20px;
}

.tour-tooltip.top::before {
    bottom: -7px;
    left: 20px;
    top: auto;
}

.tour-tooltip-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.tour-tooltip-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.tour-arrow {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--accent);
    z-index: 10002;
    animation: tourArrowBounce 1s infinite;
}

@keyframes tourArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.tour-sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10003;
    animation: tourSparkle 1s ease-out forwards;
}

@keyframes tourSparkle {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.tour-sidebar-scroll {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .tour-card { padding: 24px; }
    .tour-title { font-size: 24px; }
    .tour-features { gap: 12px; }
    .tour-btn { padding: 10px 20px; }
    .tour-tooltip { max-width: 240px; font-size: 12px; }
    .tour-progress { max-height: 60px; }
}
